package org.myspringmvc.web.servlet;

import lombok.Data;
import org.myspringmvc.ui.ModelMap;

/**
 * @author 莫磊
 * @date 2025/8/12
 * @description 模型和视图对象
 */
@Data
public class ModelAndView {

    private Object view;

    private ModelMap model = new ModelMap();

    public void setViewName(String viewName) {
        setView(viewName);
    }
}
